package com.itheima.sys.service;

import com.itheima.common.vo.PageResult;
import com.itheima.sys.dto.ChangeMainManagerDTO;
import com.itheima.sys.dto.CompanyUserAdminDTO;
import com.itheima.sys.dto.CompanyUserDTO;
import com.itheima.sys.entity.CompanyUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 企业与用户关联表 企业-企业与用户关联表 服务类
 * </p>
 *
 * @author itheima
 * @since 2020-12-13
 */
public interface ICompanyUserService extends IService<CompanyUser> {

    List<CompanyUserDTO> queryCompanyUserById(Long userId, Long companyId);

    List<CompanyUserDTO> queryCompanyAdmins();

    PageResult<CompanyUserDTO> queryCompanyMembersByPage(Integer page, Integer pageSize);

    void addSubAdmin(CompanyUserAdminDTO companyUserAdminDTO);

    CompanyUserDTO getCurrentAdmin(Long companyId);

    void changeSysAdmin(ChangeMainManagerDTO changeMainManagerDTO);

    CompanyUserDTO queryCompanyUserOne(Long companyUserId);

    List<CompanyUserDTO> queryCompanyUserByIds(List<Long> companyUserIds);

    List<CompanyUserDTO> queryCurrentAllQuery();

}
